package com.bianguo.android.bprinter.view.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.RelativeLayout;

public class ZoomBoardLayout extends RelativeLayout {

    private int position;

    public ZoomBoardLayout(Context context) {
        this(context, null);
    }

    public ZoomBoardLayout(Context context, AttributeSet attrs) {
        this(context, attrs, 0);
    }

    public ZoomBoardLayout(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        initView(context, attrs);
    }

    private void initView(Context context, AttributeSet attrs) {
        int childCount = getChildCount();
        for (int i = 0; i < childCount; i++) {
            if (position == childCount) {

            }
        }
    }

    private void addZoomFrameView(Context context, View view) {
        ZoomFrameView zoomView = new ZoomFrameView(context);
        addView(zoomView);
        RelativeLayout.LayoutParams params = (LayoutParams) getLayoutParams();
        params.addRule(ALIGN_LEFT, view.getId());
    }
}
